package cn.itcast.dao;

import cn.itcast.entity.Admin;

/**
 * Created 吴海杰 on 2017/2/28.
 */
public interface IAdminDao {
    //保存
    void save(Admin admin);
    //根据用户名密码查询
    Admin findByNameAndPwd(Admin admin);
    //检查用户名是否存在
    boolean userExists(String name);
}
